import groovy.io.FileType

def listFiles(String resourcePath) {
    def resourceFile = new File(resourcePath)
    def fileList = []
    resourceFile.eachFileRecurse(FileType.FILES) { file ->
        fileList.add(file.name)
    }

    return fileList
}